/**
 * vue插件:注册项目所有的全局组件
 * v2和v3编写插件的变化:
 * 1.整体写法不变
 * 2.v3的install方法的第一个参数发生变化=>app实例 | v2的install方法的第一个参数Vue构造函数
 *
 */
import Skeketon from './Skeleton/index.vue'
import Slider from './Slider/index.vue'
import More from './More/index.vue'
import Bread from './Bread/index.vue'
import BreadItem from './Bread/item.vue'
import InfiniteLoad from './InfiniteLoad'
import City from './City'
import Sku from './Sku/index.vue'
import NumBox from './Numbox/index.vue'
import Button from './Button/Button.vue'
import Checkbox from './CheckBox/index.vue'
import Message from './Message/index.vue'
import Dialog from './Dialog/index.vue'
const cps = [Skeketon, Slider, More, Bread, BreadItem, InfiniteLoad, City, Sku, NumBox, Button, Checkbox, Message, Dialog]
export default {
  install (app) {
    // app.component('Skeketon', Skeketon)
    cps.forEach(cp => {
      app.component(cp.name, cp)
    })
  }
}
